<form method="post" action="uploadImg.php" enctype="multipart/form-data">
<input type="file" name="uploadedfile" />
<input type="submit">
</form>
<?php
$info="hello";
$fp=fopen("result.txt","w");
echo fputs($fp,$info);
fclose($fp);

?>